package nagel_schreckenberg;

public class PhasePolicy {
	
	private int north;
	private int east;
	private int south;
	private int west;
	private int greentime;
	
	public PhasePolicy(int g){
		greentime = g;
	}
	
	public PhasePolicy(int n, int e, int s , int w){
		north = n;
		east = e;
		south = s;
		west = w;
	}
	
	public int getGreenTime(){
		return greentime;
	}
	
	public int getNorth(){
		return north;
	}
	public int getEast(){
		return east;
	}
	public int getSouth(){
		return south;
	}
	public int getWest(){
		return west;
	}
	
	public boolean equals(PhasePolicy p){
		boolean equals = false;
		if(p.getNorth() == north && p.getEast() == east && p.getSouth() == south && p.getWest() == west){
			equals = true;
		}
		else{
			equals = false;
		}
		return equals;
	}
}
